package com.example.javatwo.pojo.xs.zqy;

import java.util.List;

public class PageBean {
	private int topPage;//上一页
	private int nextPage;//下一页
	private int count;//总记录数
	private int Pagesize;//总页数
	private int size;//当前页数
	private int currentPage;//当前页
	private Object  Pageobj;//储存数据
	
	
	
	public PageBean(int count, int currentPage, Object pageobj) {
		super();
		this.count = count;
		this.Pagesize = count;
		this.topPage = currentPage <1 ? 1 : currentPage - 1;
		this.nextPage = currentPage >= this.Pagesize ? currentPage : currentPage + 1;
		this.currentPage = currentPage;
		this.Pageobj = pageobj;
	}
	
	
	public int getTopPage() {
		return topPage;
	}
	public void setTopPage(int topPage) {
		//topPage=this.currentPage>0?currentPage-1:currentPage;
		this.topPage = topPage;
	}
	public int getNextPage() {
		return nextPage;
	}
	public void setNextPage(int nextPage) {
		//nextPage=this.currentPage<Pagesize?currentPage+1:currentPage;
		this.nextPage = nextPage;
	}
	public int getCount() {
		return count;
	}
	public void setCount(int count) {
		this.count = count;
	}
	public int getPagesize() {
		return Pagesize;
	}
	public void setPagesize(int pagesize) {
		//pagesize=this.count%size==0?count/size:count/size+1;
		this.Pagesize = pagesize;	
	}
	public int getSize() {
		return size;
	}
	public void setSize(int size) {
		this.size = size;
	}
	public int getCurrentPage() {
		return currentPage;
	}
	public void setCurrentPage(int currentPage) {
		this.currentPage = currentPage;
	}
	public Object getPageobj() {
		return Pageobj;
	}
	public void setPageobj(Object pageobj) {
		Pageobj = pageobj;
	}
	

}
